import socket from "@/socket";

const actions = {
    modifyNickname(context, data) {
        return new Promise((resolve, reject) => {
            socket.emit('modify_nickname', data, res => resolve(res));
        })
    },
    modifyCover(context, data) {
        return new Promise((resolve, reject) => {
            socket.emit('modify_cover', data, res => resolve(res));
        })
    },
}

export default {
    namespaced: true,
    actions
}